package com.example.foobar.business.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.foobar.entity.DaQrcodeRecords;
import com.example.foobar.entity.DaQrcodeRetentionRates;
import com.example.foobar.vo.RetentionRateVO;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

import java.util.Date;
import java.util.List;

/**
 * 本地公众号信息 服务类
 *
 * @author 郑英奔
 * @since 2021-05-31
 */
public interface DaQrcodeRetentionRatesService {

    boolean saveDaQrcodeRetentionRates(DaQrcodeRetentionRates daQrcodeRetentionRates);


    boolean updateDaQrcodeRetentionRates(DaQrcodeRetentionRates daQrcodeRetentionRates);

    boolean deleteDaQrcodeRetentionRates(Long id);

    DaQrcodeRetentionRates getById(Long id);

    void remove(LambdaQueryWrapper<DaQrcodeRetentionRates> wrapper);

    void saveBatch(List<DaQrcodeRetentionRates> daRetentionRatesList);

    Paging<RetentionRateVO> getQrCodeStroyRetentonRates(String sceneId, Date startDate, Date today, int dayCount);
}
